/**
 * CarCalendarMapperExt
 * Copyright © 2015 - 2017 
 * All rights reserved.
 * -----------------------------------
 * 2018-07-12  Created
 */
package com.lzy.cloud.goods.mapper;

import com.lzy.cloud.goods.dtos.CarCalendarDto;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;

@Resource
public interface CarCalendarMapperExt extends CarCalendarMapper {

    List<CarCalendarDto> selectOneMonthList(@Param("param") CarCalendarDto carCalendarDto);

    List<CarCalendarDto> priceList(@Param("param") CarCalendarDto carCalendarDto);

    CarCalendarDto selectByCarIdAndDate(@Param("param") CarCalendarDto carCalendarDto);

    List<CarCalendarDto> priceWeekList(@Param("param") CarCalendarDto carCalendarDto);

    Integer findExistCalendar(@Param("param") CarCalendarDto carCalendarDto);

    BigDecimal selectMinPrice(@Param("param") CarCalendarDto carCalendarDto);

    Integer updateByCarIdAndDates(@Param("param") CarCalendarDto carCalendarDto);

    Integer updateByWeekdaysAndDate(@Param("param") CarCalendarDto carCalendarDto,@Param("weekdays") String weekdays);

    Integer updateByCarIdAndOneDate(@Param("param") CarCalendarDto carCalendarDto);

    CarCalendarDto findByCarId(@Param("param") CarCalendarDto carCalendarDto);

    int updateCarCalendar(@Param("param") CarCalendarDto carCalendarDto);
}